<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title>2.6.8跨模块常量2</title>
    </head>
    <body>
        <script>
            import {A,B} from './contants.js';
            console.log(A);//1
            console.log(B);//3
        </script>
    </body>
</html>